{% extends "admin/base_site.html" %}
<!DOCTYPE html 
     PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
     "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml"
    dir="{% if LANGUAGE_BIDI %}rtl{% else %}ltr{% endif %}"
    xml:lang="{% firstof LANGUAGE_CODE 'en' %}"
    lang="{% firstof LANGUAGE_CODE 'en' %}">
  <head>
    <title>{% block title %}{% endblock %} - Reversim Jobs</title>
    {% block css %}
      {# <link rel="stylesheet" type="text/css" href="{{ MEDIA_URL }}combined-{% if LANGUAGE_BIDI %}rtl{% else %}ltr{% endif %}.css" /> #}
    {% endblock %}

    {% block js %}
      {# <script type="text/javascript" src="{{ MEDIA_URL }}combined-{{ LANGUAGE_CODE }}.js"></script> #}
    {% endblock %}

    {% block extra-head %}{% endblock %}
  </head>

  <body>

	{% block userlinks %}
          {% if user.is_authenticated %}
	          Welcome, {{ user.username }}! /
	          {% if user.is_staff %}
	            <a href="/admin/">Administration</a> /
	          {% endif %}
          {% endif %}
          <a href="/about/">About</a> /
          {% if user.is_authenticated %}
			<a href="{% url django.contrib.auth.views.logout %}">Logout</a>
          {% else %}
            <a href="{% url django.contrib.auth.views.login %}">Login</a> /
            <a href="{% url registration.views.register %}">Register</a>
          {% endif %}
	{% endblock %}

    <div id="content" class="column">
      {% block content-header %}
        {% if error %}<div class="error">{{ error }}</div>{% endif %}
        {% if info %}<div class="info">{{ info }}</div>{% endif %}
        {% if messages %}
          {% for message in messages %}
            <div class="info">{{ message }}</div>
          {% endfor %}
        {% endif %}
      {% endblock %}
      {% block content %}{% endblock %}
    </div>
  </body>
</html>
